negotiator.issue
Class IssueReal

java.lang.Object
  extended by negotiator.issue.Objective
      extended by negotiator.issue.Issue
          extended by negotiator.issue.IssueReal
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class IssueReal
extends Issue

Author:
Koen Hindriks
See Also:
Serialized Form

Constructor Summary
IssueReal(java.lang.String name, int issueNumber, double min, double max)
           
IssueReal(java.lang.String name, int issueNumber, double min, double max, Objective objParent)
           
 
Method Summary
 boolean checkInRange(Value val)
          Method to check if the given value is in the range specified by the issue.
 java.lang.String convertToString()
           
 double getLowerBound()
           
 int getNumberOfDiscretizationSteps()
           
 ISSUETYPE getType()
          This method is added for convenience.
 double getUpperBound()
           
 boolean setLowerBound(double lo)
           
 void setNumberOfDiscretizationSteps(int numberOfDiscretizationSteps)
           
 boolean setUpperBound(double up)
           
 SimpleElement toXML()
          Returns a SimpleElement representation of this issue.
 
Methods inherited from class negotiator.issue.Issue
addChild
 
Methods inherited from class negotiator.issue.Objective
children, equalContents, equals, getAllowsChildren, getChildAt, getChildCount, getChildren, getChildWithID, getDescription, getHighestObjectiveNr, getIndex, getName, getNumber, getObjective, getParent, getPath, getPreorderEnumeration, getPreorderIssueEnumeration, getPreorderObjectiveEnumeration, getSiblings, getUserObject, hashCode, insert, isIssue, isLeaf, isObjective, isParent, remove, remove, removeFromParent, setDescription, setName, setNumber, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IssueReal

public IssueReal(java.lang.String name,
                 int issueNumber,
                 double min,
                 double max)

IssueReal

public IssueReal(java.lang.String name,
                 int issueNumber,
                 double min,
                 double max,
                 Objective objParent)
Method Detail

checkInRange

public boolean checkInRange(Value val)
Description copied from class: Issue
Method to check if the given value is in the range specified by the issue.

Specified by:
checkInRange in class Issue
Parameters:
val - to be checked.
Returns:
true if in range.

getLowerBound

public final double getLowerBound()

getUpperBound

public final double getUpperBound()

setUpperBound

public final boolean setUpperBound(double up)

setLowerBound

public final boolean setLowerBound(double lo)

getNumberOfDiscretizationSteps

public int getNumberOfDiscretizationSteps()

setNumberOfDiscretizationSteps

public void setNumberOfDiscretizationSteps(int numberOfDiscretizationSteps)

toXML

public SimpleElement toXML()
Returns a SimpleElement representation of this issue.

Overrides:
toXML in class Issue
Returns:
The SimpleElement with this issues attributes

getType

public ISSUETYPE getType()
Description copied from class: Objective
This method is added for convenience. It is simply an alternative implementation of the getType method from the Issue class. It will always return that the type is Objective. This method must be overridden in Issue to return the type of the Issue.

Specified by:
getType in class Issue
Returns:
ISSUETYPE.OBJECTIVE

convertToString

public java.lang.String convertToString()
Specified by:
convertToString in class Issue
Returns:
corresponding string representation